include_directories(${Com_cache_head})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${InSdkPath}/InSdkIniConfig)
include_directories(${InSdkPath}/InSdkSpkCtrl)
include_directories(${InSdkPath}/InSdkDevInfo)

Cmake_add_include_cache(${ChipSdkPath})
Cmake_add_include_cache(${ChipSdkPath}/${CHIP_TYPE})
Cmake_add_include_cache(${ChipSdkPath}/${CHIP_TYPE}/media)
Cmake_add_include_cache(${ChipSdkPath}/${CHIP_TYPE}/include)
Cmake_add_lib_cache(${ChipSdkPath}/${CHIP_TYPE}/libs)

aux_source_directory(${ChipSdkPath}/${CHIP_TYPE}/media src_chip_sdk)
aux_source_directory(${ChipSdkPath}/GpioCtrl/${CmakeGpioCtrlMode} src_chip_ctrl_gpio)

if(CMAKE_SUPPORT_STEP_MOTOR)
    Cmake_add_include_cache(${ChipSdkPath}/PtzMotor)
    include_directories(${ChipSdkPath}/PtzMotor)
    aux_source_directory(${ChipSdkPath}/PtzMotor/${CmakePtzMotorMode} src_chip_motor)
    set(src_chip_sdk ${src_chip_sdk} ${src_chip_motor})
endif()

if(CMAKE_SUPPORT_STEEP_ENGINE)
    Cmake_add_include_cache(${ChipSdkPath}/PwmCode)
    include_directories(${ChipSdkPath}/PwmCode)
    aux_source_directory(${ChipSdkPath}/PwmCode/${CmakePwmCodeMode} src_chip_pwm)
    set(src_chip_sdk ${src_chip_sdk} ${src_chip_pwm})
endif()

add_subdirectory(WatchDog)
add_subdirectory(${CHIP_TYPE})
